package com.ibangnuo.manage.dao;

import com.ibangnuo.framework.domain.Menu;
import com.ibangnuo.framework.domain.Permission;
import com.ibangnuo.framework.domain.ext.MenuExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author:ly
 * @Data:2020/1/9 14:09
 * @Verdion:1.0
 */
@Mapper
public interface PermissionMapper {
    List<MenuExt> findList();

    List<Map> findAll();

    List<Map> selectMenu(String id);

    int editMenu(@Param("roleId") String roleId,@Param("list") List<String> menuId );

    List<Permission> findByRoleId(String roleId);

    void update(List<Permission> permissions);

    void delete(String roleId);
}
